#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

struct Student {
	char name[20];
	char sno[20];
	int class1;
	int class2;
	int class3;
};

int main() {
	Student stus[10];
	int n = 0;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%s %s %d %d %d", stus[i].name, stus[i].sno, &stus[i].class1, &stus[i].class2, &stus[i].class3);
	}
	return 0;
}